
var preferedSub;

var updateHTTPpath = "http:\\\\www.sitecom.com\\upnpinstaller\\checknewerversion.php";
var registerHTTPpath = "http:\\\\www.sitecom.com\\register.php";
var updateDomain = "http:\\\\www.sitecom.com\\";
var sitecomDomain = "http:\\\\www.sitecom.com";
var AcrobatInstallerRelativePath = "3rd Party\\Adobe\\Acrobat Reader\\ar500enu.exe";
var Testing = false;
var PnPUIVersion = "3.98";

var HTA_filename = "setup.hta";
var DefaultConfig = "config.xml";
var DefaultConfig2 = "config.xml";
var SWCTitle = "Sitecom WC - "

var  delayLocalInstallFinish = 0.2 * 1000;

var iTryConnectionMax = 3;
var timeoutRetrieveUpdateInfo = 30;
var bCheckRetrieveTimeout = false;


var mainWwidth = 600;
var mainWheight = 448;

var OSVersion = new Array();

OSVersion[0] = "Unknown or not supported operating system";
OSVersion[1] = "Windows 98";
OSVersion[2] = "Windows XP Professional";
OSVersion[3] = "Windows 2000";
OSVersion[4] = "Windows XP Home Edition";
OSVersion[5] = "Windows 2000 Professional";
OSVersion[6] = "Windows 2000 Server/Advanced Server/Data Center";
OSVersion[7] = "Windows 2003 Server/Advanced Server/Data Center";
OSVersion[8] = "Windows 98 Second Edition";
OSVersion[9] = "Windows Millennium Edition";

var reg_OSVersion = new Array();

reg_OSVersion[0] = -1;
reg_OSVersion[1] = 0x27;
reg_OSVersion[2] = 0x1E;
reg_OSVersion[3] = 0x1C;
reg_OSVersion[4] = 0x1D;
reg_OSVersion[5] = 0x1C; 
reg_OSVersion[6] = 0x1C;
reg_OSVersion[7] = 0x2D;
reg_OSVersion[8] = 0x23;
reg_OSVersion[9] = 0x1A;

var id_OSVersion = new Array();

id_OSVersion[0] = "";
//id_OSVersion[1] = "Win98FE";
id_OSVersion[1] = "Win98FE";
id_OSVersion[2] = "WinXP";
id_OSVersion[3] = "Win2000";
id_OSVersion[4] = "WinXP";
id_OSVersion[5] = "Win2000";
id_OSVersion[6] = "Win2000";
id_OSVersion[7] = "Win2003";
id_OSVersion[8] = "Win98SE";
id_OSVersion[9] = "WinME";

var	osUnknown	= 0; 
var	os98 = 1;
var	osXP = 2;
var	os2000 = 3;
var	osXPHome = 4;
var	os2000Prof = 5; 
var	os2000Serv = 6;
var	os2003Serv = 7;
var	os98SE = 8;
var	osME = 9;

var	tDriver = 0;
var	tFile = 1;
var	tCom = 2;
var	tRegistry = 3;
var	tArchive = 4;
var	tDirectory = 5;
//var	tExe = 6;	//041228 - now 6 is tDelayedFile
var	tDelayedFile = 6
var	tExe = 7;  

var	aTypes = new Array();

aTypes["driver"] = tDriver;
aTypes["file"] = tFile;
aTypes["com"] = tCom;
aTypes["reg"] = tRegistry;
aTypes["archive"] = tArchive;
aTypes["directory"] = tDirectory;
aTypes["delayedFile"] = tDelayedFile;	//041208
aTypes["exe"] = tExe;

var	sIdle = 0;
var	sInstall = 1;
var	sUnInstall = 2;
var	sError = 3;

var	mAppend = 0;
var	mReplace = 1;
var	mIgnore = 2;

var	lUnknown	= 0;
var	lEnglish	= 1;
var	lGerman		= 2;
var	lDutch		= 3;
var	lFrench		= 4;
var	lItalian	= 5;
var	lSpanish	= 6;
var	lRussian	= 7;

var	aLangs = new Array("undefined", "English", "German", "Dutch", "French", "Italian", "Spanish", "Russian");
var	aLangs2 = new Array(0,3,1,2,4,5,7,6);

var aTasks = new Array("install", "update", "register");

var aChipset = new Array();
aChipset["PrismGT"] = 0;
aChipset["Ralink"]  = 1;
aChipset["Javelin"] = 2;
aChipset["Cohiba"]  = 3;
aChipset["Zydas"]  = 4;


// ::
ReadyToStart2 = true;